package com.yfp.org.mapper;

import com.yfp.org.domain.dto.DevicesDistrictDeployedDTO;
import com.yfp.org.domain.entity.Machine;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface MachineMapper {
    void updateEnable(Machine machine);

    List<Machine> queryAllByLimit(Machine machine);

    Machine queryById(String machineId);

    /**
     * 查询总数
     *
     * @return
     */
    Long machineCount();

    /**
     * 查询每个‘区’设备投放总数
     *
     * @return
     */
    List<DevicesDistrictDeployedDTO> machineDistrictCount();
}
